import random
import string

def generateFileId(length):
    str = string.ascii_letters + string.digits
    return ''.join(random.choice(str) for i in range(length))